{% for user in users %}
    <div class="media user">
        <div class="media-left">
            {% set userHomeUrl = path('user_view', {'username': user.username}) %}
            <a href="{{ userHomeUrl  }}" class="avatar">
                <img src="{{ asset(user.avatar)|imagine_filter('middle_square') }}" class="media-object img-responsive img-circle">
            </a>
        </div>
        <div class="media-body">
            <div class="title"><a href="{{ userHomeUrl }}">{{ user.username }}</a></div>
            <div class="meta">
                <ul class="list-unstyled list-inline">
                    <li>{{ user.followingCount }}关注</li>
                    <li>{{ user.followerCount }}粉丝</li>
                </ul>
            </div>
        </div>
    </div>
{% endfor %}